<template>
  <div>
    <a-input
          :allowClear="allowClear"
          :placeholder="placeholder?placeholder:inputPlaceholder"
          :value="value"
          v-bind="$attrs"
          @input="input"
         />
  </div>
</template>

<script>
export default {
  name:'CommonInput',
  props:{
    placeholder:{
      type:String,
    },
    value:{
      require:true
    },
    allowClear:{
      type:Boolean,
      default:true
    }
  },
  created(){
    console.log('value',this.value)
  },
  data(){
    return{
      inputPlaceholder:'请输入'
    }
  },
  methods:{
    input(e){
      this.$emit('input',e)
    }
  }

}
</script>

<style>

</style>